package com.itheima.stock.service;

import com.itheima.stock.pojo.domain.EditUserDomain;
import com.itheima.stock.pojo.domain.SysUserDomain;
import com.itheima.stock.pojo.domain.UserByIdDomain;
import com.itheima.stock.pojo.domain.UserDomain;
import com.itheima.stock.pojo.entity.SysUser;
import com.itheima.stock.pojo.vo.req.*;
import com.itheima.stock.pojo.vo.resp.LoginRespVo;
import com.itheima.stock.pojo.vo.resp.R;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface UserService {
    SysUser findUserInfoByUserName(String userName);

//    R<UserDomain> login(LoginReqVo vo);

    R<HashMap<String, String>> getCaptchaCode();

    R<PageResult<SysUserDomain>> UserPage(UserPage userPage);

    R saveUser(UserReqVo userReqVo);

    R<Map<String, Object>> getRoleInfo(String userId);


    R editRole(EditRole editRole);

    R delUser(List<Long> userIds);

    R<UserByIdDomain> getUserById(String userId);

    R editUserById(EditUserDomain editUserDomain);
}
